﻿using System;

namespace _12_Console
{
    internal class Program
    {
        static void Main(string[] args)
        {
            #region 继承
            //Dog dog = new();
            //dog.Name = "小黑";
            //dog.Age = 1;
            //dog.Color = "black";
            //dog.Roar();

            //Cat cat = new();
            //cat.Name = "lucky";
            //cat.Age = 1;
            //cat.Color = "白色";
            //cat.Roar();

            //Tigger t = new();
            //t.Name = "泰哥";
            //t.Age = 1;
            //t.Color = "白色";
            //t.Roar(); 
            #endregion

            Cat cat = new Cat("lucky", 3, "白色");
            cat.Print();
            Tigger tigger = new Tigger("泰哥", 4, "黄色");
            tigger.Print();
            Dog dog = new Dog()
            {
                Name = "涛涛",
                Age = 4,
                Color = "棕色"
            };
            dog.Print();
        }
    }
}
